package com.lanchetech.dao;

import com.lanchetech.bean.request.MeetingPageReq;
import com.lanchetech.bean.vo.MeetingVO;
import com.lanchetech.entity.Meeting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MeetingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Meeting record);

    int insertSelective(Meeting record);

    Meeting selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Meeting record);

    int updateByPrimaryKey(Meeting record);

    List<MeetingVO> findAllPage(MeetingPageReq req);

    int updateDeletedById(@Param("updatedDeleted") Byte updatedDeleted, @Param("id") Long id);

    int updateCurrentCountById(@Param("updatedCurrentCount") Long updatedCurrentCount, @Param("id") Long id);

    List<Meeting> findAllByIds(@Param("list") List<Long> list);
}